﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;


namespace WindowsGame1
{
    class Camera
    {
        public Matrix transform;
        Viewport view;
        public Rectangle center;

        public Camera(Viewport newView)
        {
            view = newView;

        }

        public void Update(GameTime gameTime, Game1 game)
        {
            center = new Rectangle((int)game.pontoRectangle.X, (int)game.pontoRectangle.Y, 640, 400);
            transform = Matrix.CreateScale(new Vector3(1, 1, 0)) * Matrix.CreateTranslation(new Vector3(center.X, center.Y, 0));

        }

    }

}